package com.cdl.inner;

/**
 * @author cdl
 * @date 2025/10/6
 */
public class Outer {

    //对外提供成员内部类访问方法
    public void method(){
        In in = new In();
        in.innerMethod();
    }


    public class In{
        public void innerMethod(){
            System.out.println("执行内部类的方法");
        }
    }
}

class Test {
    public static void main(String[] args) {
        Outer outer = new Outer();
        outer.method();
    }
}
